﻿@using Webdiyer.WebControls.Mvc
@using XXF.Extensions;
@model PagedList<Dyd.BaseService.Monitor.Domain.PlatformManage.Model.tb_keyvalue_config_model>

<table>
    <tr>
        <th>ID</th>
        <th>键</th>
        <th style="width:50%">值</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>@item.id</td>
            <td>@item.key</td>
            <td title="@item.value">@(item.value.SubString2(200)+(item.value.Length>200?"...":""))</td>
            <td>@item.remark</td>
            <td>
                <a href="@Url.Action("Update", "Config", new { id = @item.id })">修改</a>
                <input type="button" value="删除" onclick="Delete('@item.id')" />
            </td>
        </tr>
    }
</table>
<div class="total pt10">
    <div class="fl">共<em>@Model.TotalPageCount</em>页<em>@Model.TotalItemCount</em>条记录，当前为第<em>@Model.CurrentPageIndex</em>页</div>
    @Ajax.Pager(Model, new PagerOptions { PageIndexParameterName = "pageindex", ShowPageIndexBox = true, PageIndexBoxType = PageIndexBoxType.DropDownList, ShowGoButton = false }, new MvcAjaxOptions { UpdateTargetId = "List", HttpMethod = "Post" , DataFormId="searchForm" }, new { @class = "pager_page" })
</div>
